<%layout("/common/_layout.html"){ %>

<h1>Blog管理&nbsp;&nbsp;
<a href="/blog/add">创建Blog ${session.name} 1212</a>
</h1>
<div class="table_box">
	<table class="list">
		<tbody>
			<tr>
				<th width="4%">id</th>
				<th width="35%">标题</th>
				<th width="12%">操作</th>
			</tr>
			
			<%for(x in blogPage.list){ %>
			<tr>
				<td style="text-align:left;">${x.id}</td>
				<td style="text-align:left;">${x.title!"空"}--${x.memo!"空"}</td>
				<td style="text-align:left;">
					&nbsp;&nbsp;<a href="/blog/delete/${x.id}">删除</a>
					&nbsp;&nbsp;<a href="/blog/edit/${x.id}">修改</a>
				</td>
			</tr>
			<%}%>
		</tbody>
	</table>
	<%includeFileTemplate("/common/_paginate.html",
		{"currentPage":blogPage.pageNumber,"totalPage":blogPage.totalPage,"actionUrl":"/blog/"}) {} 
	 %>
	
</div>
<%}%>